From: Florian Müllner Date: Mon, 8 Jan 2018 15:56:43 +0000 (+0100) Subject: location: Use translated reason string X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~994^2^2~122 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=723c49a8b7eacc4d179e7caa82d218d03d32999f;p=gnome-shell.git location: Use translated reason string Gio now has API to look up localized strings from desktop files, so we can display a correctly translated reason where available. https://bugzilla.gnome.org/show_bug.cgi?id=779413 --- diff --git a/js/ui/status/location.js b/js/ui/status/location.js index 13aa8a94e..ef91a460d 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -321,7 +321,7 @@ var AppAuthorizer = new Lang.Class({ _userAuthorizeApp: function() { let name = this._app.get_name(); let appInfo = this._app.get_app_info(); - let reason = appInfo.get_string("X-Geoclue-Reason"); + let reason = appInfo.get_locale_string("X-Geoclue-Reason"); this._showAppAuthDialog(name, reason); },